Compilers vs. interpreters: what is the difference between these two tools?

您所在的位置:网站首页 difference between compilers and interpreters with table Compilers vs. interpreters: what is the difference between these two tools?

Compilers vs. interpreters: what is the difference between these two tools?

2023-03-22 12:53| 来源: 网络整理| 查看: 265

A compiler is a computer program which converts the source code of a software project in its entirety into machine code before it is run. Only then is the project run by the processor which means it has all the instructions available to it in machine code right from the start. The processor thus has all the necessary parts ready to run the given software, process input and generate output. In many cases, there is a crucial intermediate step which takes place during the compiling process: before being converted into machine code, most compilers will often first convert it into an intermediate code (i.e. “object code”) which is often compatible with various platforms and can also be used by an interpreter.

When generating the code, compilers determine the order in which instructions are sent to the processor. If the instructions are not dependent on one another, the processor can even execute the instructions simultaneously.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3